An atomic clock based on the energy difference between two states of the caesium nucleus in a magnetic field